<HTML>
<HEAD>
<meta charset="UTF-8">
<title>SurfaceTextureCaptureSource - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture</a>&nbsp;/&nbsp;<a href="./index.html">SurfaceTextureCaptureSource</a><br/>
<br/>
<h1>SurfaceTextureCaptureSource</h1>
<code><span class="keyword">interface </span><span class="identifier">SurfaceTextureCaptureSource</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-video-capture-source/index.html"><span class="identifier">VideoCaptureSource</span></a></code>
<p><a href="./index.html">SurfaceTextureCaptureSource</a> provides a <a href="https://developer.android.com/reference/android/view/Surface.html">Surface</a> which can be passed to system sources like the camera.
Upon <a href="../-video-capture-source/start.html">start</a> call, the source will listen to the surface and emit any new images as <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html">VideoFrame</a> objects to any
downstream <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-sink/index.html">VideoSink</a> interfaces. This class is mostly intended for composition within <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-source/index.html">VideoSource</a> implementations which will
pass the created <a href="https://developer.android.com/reference/android/view/Surface.html">Surface</a> to a system source, then call <a href="#">addVideoSink</a> to receive the frames before transforming and
passing downstream.</p>
<h3>Properties</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="min-fps.html">minFps</a></h4>
</td>
<td>
<p>Setting this to a positive value will lead the source to resend previously captured frames
as necessary to approximately maintain the set value.</p>
<code><span class="keyword">abstract</span> <span class="keyword">var </span><span class="identifier">minFps</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="surface.html">surface</a></h4>
</td>
<td>
<p><a href="https://developer.android.com/reference/android/view/Surface.html">Surface</a> from which any buffers submitted to will be emitted as a <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html">VideoFrame</a>.
User must call <a href="../-video-capture-source/start.html">start</a> to start listening, and <a href="../-video-capture-source/stop.html">stop</a> will likewise stop listening.</p>
<code><span class="keyword">abstract</span> <span class="keyword">val </span><span class="identifier">surface</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/view/Surface.html"><span class="identifier">Surface</span></a></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="release.html">release</a></h4>
</td>
<td>
<p>Deallocate any state or resources held by this object. Not possible to reuse after call. Surface
will have been released.</p>
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">release</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
<h3>Inheritors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="../-default-surface-texture-capture-source/index.html">DefaultSurfaceTextureCaptureSource</a></h4>
</td>
<td>
<p><a href="../-default-surface-texture-capture-source/index.html">DefaultSurfaceTextureCaptureSource</a> will provide a <a href="https://developer.android.com/reference/android/view/Surface.html">Surface</a> which it will listen to
and convert to <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video.buffer/-video-frame-texture-buffer/index.html">VideoFrameTextureBuffer</a> objects</p>
<code><span class="keyword">class </span><span class="identifier">DefaultSurfaceTextureCaptureSource</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">SurfaceTextureCaptureSource</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
